file(GLOB_RECURSE CURRENT_SOURCE_PATH ${CMAKE_CURRENT_LIST_DIR}/*.cc)
file(GLOB_RECURSE CURRENT_HEAD_PATH ${CMAKE_CURRENT_LIST_DIR}/*.h)

set(LIB_NAME mi_utils)
add_library(${LIB_NAME} OBJECT ${CURRENT_SOURCE_PATH})
target_include_directories(${LIB_NAME} PRIVATE ${CMAKE_CURRENT_BINARY_DIR}/)
list(APPEND MONOLITH_INFERENCE_OBJECTS $<TARGET_OBJECTS:${LIB_NAME}>)
list(APPEND MONOLITH_INFERENCE_TARGETS ${LIB_NAME})
# list(APPEND MONOLITH_BACKENDS_HEADS ${CMAKE_CURRENT_LIST_DIR}/tensor.h
#     ${CMAKE_CURRENT_LIST_DIR}/macros.h)
